package com.vcc.data.mapper;

import com.mybatisflex.core.BaseMapper;
import com.vcc.data.entity.BossUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface BossUserMapper extends BaseMapper<BossUser> {


    @Select("select account from vcc_boss_user where id = #{id} ")
    String findAccountById(
            @Param("id") Long id
    );

    @Select("select username from vcc_boss_user where id = #{id} ")
    String findUserNameById(
            @Param("id") Long id
    );
}
